package com.hanthink.system.domain.manhour;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 生产计划和设备开停机差异分析对象 ProductionPlanFactAnaly
 * 
 * @author hanthink
 * @date 2022-04-15
 */
public class ProductionPlanFactAnaly extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workdate;

    /** 班次描述 */
    @Excel(name = "班次描述")
    private String pshiftid;

    /** 班组 */
    @Excel(name = "班组")
    private String teamid;

    /** 班次开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "班次开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date workshiftdatetime;

    /** 班次结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "班次结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date workshiftdatetimeend;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String companyid;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyname;

    /** 机台编号 */
    @Excel(name = "设备编号")
    private String machineid;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String machinename;

    /** 计划生产物料 */
    @Excel(name = "计划生产物料")
    private String materialid;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialname;

    /** 设备实际开停状 */
    @Excel(name = "设备实际开停状")
    private String machinestatus;

    /** 差异说明 */
    @Excel(name = "差异说明")
    private String memo;

    /** 创建日期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refreshdatetime;

    /** $column.columnComment */
    @Excel(name = "创建日期时间")
    private Long id;

    public void setWorkdate(Date workdate) 
    {
        this.workdate = workdate;
    }

    public Date getWorkdate() 
    {
        return workdate;
    }
    public void setPshiftid(String pshiftid) 
    {
        this.pshiftid = pshiftid;
    }

    public String getPshiftid() 
    {
        return pshiftid;
    }
    public void setTeamid(String teamid) 
    {
        this.teamid = teamid;
    }

    public String getTeamid() 
    {
        return teamid;
    }
    public void setWorkshiftdatetime(Date workshiftdatetime) 
    {
        this.workshiftdatetime = workshiftdatetime;
    }

    public Date getWorkshiftdatetime() 
    {
        return workshiftdatetime;
    }
    public void setWorkshiftdatetimeend(Date workshiftdatetimeend) 
    {
        this.workshiftdatetimeend = workshiftdatetimeend;
    }

    public Date getWorkshiftdatetimeend() 
    {
        return workshiftdatetimeend;
    }
    public void setCompanyid(String companyid) 
    {
        this.companyid = companyid;
    }

    public String getCompanyid() 
    {
        return companyid;
    }
    public void setCompanyname(String companyname) 
    {
        this.companyname = companyname;
    }

    public String getCompanyname() 
    {
        return companyname;
    }
    public void setMachineid(String machineid) 
    {
        this.machineid = machineid;
    }

    public String getMachineid() 
    {
        return machineid;
    }
    public void setMachinename(String machinename) 
    {
        this.machinename = machinename;
    }

    public String getMachinename() 
    {
        return machinename;
    }
    public void setMaterialid(String materialid) 
    {
        this.materialid = materialid;
    }

    public String getMaterialid() 
    {
        return materialid;
    }
    public void setMaterialname(String materialname) 
    {
        this.materialname = materialname;
    }

    public String getMaterialname() 
    {
        return materialname;
    }
    public void setMachinestatus(String machinestatus) 
    {
        this.machinestatus = machinestatus;
    }

    public String getMachinestatus() 
    {
        return machinestatus;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setRefreshdatetime(Date refreshdatetime) 
    {
        this.refreshdatetime = refreshdatetime;
    }

    public Date getRefreshdatetime() 
    {
        return refreshdatetime;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workdate", getWorkdate())
            .append("pshiftid", getPshiftid())
            .append("teamid", getTeamid())
            .append("workshiftdatetime", getWorkshiftdatetime())
            .append("workshiftdatetimeend", getWorkshiftdatetimeend())
            .append("companyid", getCompanyid())
            .append("companyname", getCompanyname())
            .append("machineid", getMachineid())
            .append("machinename", getMachinename())
            .append("materialid", getMaterialid())
            .append("materialname", getMaterialname())
            .append("machinestatus", getMachinestatus())
            .append("memo", getMemo())
            .append("refreshdatetime", getRefreshdatetime())
            .append("id", getId())
            .toString();
    }
}
